﻿
using System;
using System.Data;
using System.Data.Common;
using Hxj.Data;
using Hxj.Data.Common;

namespace RecruitStudents.Utility.Model
{

	/// <summary>
	/// 实体类TB_Exam_ExamRoomExaminerMapping 。(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public class TB_Exam_ExamRoomExaminerMapping : Entity 
	{
		public TB_Exam_ExamRoomExaminerMapping():base("TB_Exam_ExamRoomExaminerMapping") {    _ExaminerID=Guid.NewGuid().ToString();}

		#region Model
		private string _ExamRoomNO;
		private string _ExaminerID;
		private string _IsActive;
		private string _Remark;
		private string _ExamYear;
		/// <summary>
		/// 
		/// </summary>
		public string ExamRoomNO
		{
			get{ return _ExamRoomNO; }
			set
			{
				this.OnPropertyValueChange(_.ExamRoomNO,_ExamRoomNO,value);
				this._ExamRoomNO=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string ExaminerID
		{
			get{ return _ExaminerID; }
			set
			{
				this.OnPropertyValueChange(_.ExaminerID,_ExaminerID,value);
				this._ExaminerID=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string IsActive
		{
			get{ return _IsActive; }
			set
			{
				this.OnPropertyValueChange(_.IsActive,_IsActive,value);
				this._IsActive=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Remark
		{
			get{ return _Remark; }
			set
			{
				this.OnPropertyValueChange(_.Remark,_Remark,value);
				this._Remark=value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string ExamYear
		{
			get{ return _ExamYear; }
			set
			{
				this.OnPropertyValueChange(_.ExamYear,_ExamYear,value);
				this._ExamYear=value;
			}
		}
		#endregion

		#region Method
		/// <summary>
		/// 获取实体中的主键列
		/// </summary>
		public override Field[] GetPrimaryKeyFields()
		{
			return new Field[] {
				_.ExaminerID};
		}
		/// <summary>
		/// 获取列信息
		/// </summary>
		public override Field[] GetFields()
		{
			return new Field[] {
				_.ExamRoomNO,
				_.ExaminerID,
				_.IsActive,
				_.Remark,
				_.ExamYear};
		}
		/// <summary>
		/// 获取值信息
		/// </summary>
		public override object[] GetValues()
		{
			return new object[] {
				this._ExamRoomNO,
				this._ExaminerID,
				this._IsActive,
				this._Remark,
				this._ExamYear};
		}
		/// <summary>
		/// 给当前实体赋值
		/// </summary>
		public override void SetPropertyValues(IDataReader reader)
		{
			this._ExamRoomNO = DataUtils.ConvertValue<string>(reader["ExamRoomNO"]);
			this._ExaminerID = DataUtils.ConvertValue<string>(reader["ExaminerID"]);
			this._IsActive = DataUtils.ConvertValue<string>(reader["IsActive"]);
			this._Remark = DataUtils.ConvertValue<string>(reader["Remark"]);
			this._ExamYear = DataUtils.ConvertValue<string>(reader["ExamYear"]);
		}
		/// <summary>
		/// 给当前实体赋值
		/// </summary>
		public override void SetPropertyValues(DataRow row)
		{
			this._ExamRoomNO = DataUtils.ConvertValue<string>(row["ExamRoomNO"]);
			this._ExaminerID = DataUtils.ConvertValue<string>(row["ExaminerID"]);
			this._IsActive = DataUtils.ConvertValue<string>(row["IsActive"]);
			this._Remark = DataUtils.ConvertValue<string>(row["Remark"]);
			this._ExamYear = DataUtils.ConvertValue<string>(row["ExamYear"]);
		}
		#endregion

		#region _Field
		/// <summary>
		/// 字段信息
		/// </summary>
		public class _
		{
			/// <summary>
			/// * 
			/// </summary>
			public readonly static Field All = new Field("*","TB_Exam_ExamRoomExaminerMapping");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field ExamRoomNO = new Field("ExamRoomNO","TB_Exam_ExamRoomExaminerMapping","ExamRoomNO");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field ExaminerID = new Field("ExaminerID","TB_Exam_ExamRoomExaminerMapping","ExaminerID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field IsActive = new Field("IsActive","TB_Exam_ExamRoomExaminerMapping","IsActive");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Remark = new Field("Remark","TB_Exam_ExamRoomExaminerMapping","Remark");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field ExamYear = new Field("ExamYear","TB_Exam_ExamRoomExaminerMapping","ExamYear");
		}
		#endregion


	}
}

